package org.openwebtop.sunshine.action.dashboard;

import java.util.List;

import org.openwebtop.sunshine.bo.DashboardBO;
import org.openwebtop.sunshine.model.CodeReviewProject;
import org.openwebtop.sunshine.model.Component;

import com.opensymphony.xwork.ActionSupport;

public class DashboardAction {
	private DashboardBO dashboardBO;
	private List<Component> componentList;
	private List<CodeReviewProject> codeReviewProjectList;

	public String execute() throws Exception {
		componentList = dashboardBO.getComponentList();
		codeReviewProjectList = dashboardBO.getCodeReviewProjectList();

		return ActionSupport.SUCCESS;
	}

	public void setDashboardBO(DashboardBO dashboardBO) {
		this.dashboardBO = dashboardBO;
	}

	public List<Component> getComponentList() {
		return componentList;
	}

	public List<CodeReviewProject> getCodeReviewProjectList() {
		return codeReviewProjectList;
	}

}
